package com.zookeeper;

/**
 * Created by whuanghkl on 17/5/30.
 */
public class ConfigInfo {
    /**
     * zk 的ip,例如<br />
     */
    private String ips;
    private String port;
    private String zkRootPath;
    /***
     * 备注
     */
    private String remark;

    public String getIps() {
        return ips;
    }

    public ConfigInfo setIps(String ips) {
        this.ips = ips;
        return this;
    }

    public String getPort() {
        return port;
    }

    public ConfigInfo setPort(String port) {
        this.port = port;
        return this;
    }

    public String getZkRootPath() {
        if (null != zkRootPath && !zkRootPath.endsWith("/")) {
            zkRootPath = zkRootPath + "/";
        }
        return zkRootPath;
    }

    public ConfigInfo setZkRootPath(String zkRootPath) {
        this.zkRootPath = zkRootPath;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
